from peewee import (
    SqliteDatabase, CharField, IntegerField, DateTimeField, Model
)

db = SqliteDatabase('demo.db')


class DemoTable(Model):
    field1 = CharField()

    field2 = IntegerField()

    field3 = DateTimeField()

    class Meta:
        database = db
        table_name = 'demo_table'


db.create_tables([DemoTable])

if __name__ == '__main__':
    DemoTable.insert_many([{'field1': 'a', 'field2': 100, 'field3': '2022-01-01 12:00:00'}] * 20).execute()
